﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NetalBase.Base;

namespace NetalBase.Log
{
	static class Logger
	{
		public static void Write(string message)
		{
			Console.WriteLine(message);
		}

		public static void WriteCurrentState(IAutomatonBase automaton)
		{
			Write(string.Format("{0} {1}", automaton.StringId, automaton.State.StateName));
		}

		public static void WriteExternalEvent(IAutomatonBase automaton, string eventName)
		{
			Write(string.Format("{0} <-- {1}", automaton.StringId, eventName));
		}

		public static void WriteInternalEvent(IAutomatonBase automaton, string eventName)
		{
			Write(string.Format("{0} --> {1}", automaton.StringId, eventName));
		}
	}
}
